﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using eventr.View;
using SuperDeepZoom;

namespace eventr.Model
{
    public class ImageMetaData : ViewModel, ISpecialImageOverlayData
    {
        int id;
        string tag;
        string title;
        string blurb;
        string url;

        bool viewed = false;

        public ImageMetaData()
        {

        }

        public ImageMetaData(int id, string tag)
        {
            this.id = id;
            this.tag = tag;
        }

        public void PauseSlideshow()
        {
            if (Pause != null)
            {
                Pause(this, EventArgs.Empty);
            }
        }

        public void ResumeSlideshow()
        {
            if (Resume != null)
            {
                Resume(this, EventArgs.Empty);
            }
        }

        public bool Viewed
        {
            get
            {
                return viewed;
            }
            set
            {
                viewed = value;
                OnPropertyChanged("Viewed");
            }
        }

        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }

        public string Video
        {
            get;
            set;
        }

        public string Tag
        {
            get
            {
                return tag;
            }
            set
            {
                tag = value;
            }
        }

        public string Title
        {
            get
            {
                return title;
            }
            set
            {
                title = value;
            }
        }

        public string Blurb
        {
            get
            {
                return blurb;
            }
            set
            {
                blurb = value;
            }
        }

        public string Url
        {
            get
            {
                return url;
            }
            set
            {
                url = value;
            }
        }

        #region ISpecialImageOverlayData Members

        public event EventHandler Pause;

        public event EventHandler Resume;

        #endregion
    }
}
